<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddSourceInteractiveChannelToFeishuCallingCardsInvestmentEmployeeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->string('source', 32)->default('')->comment('线索来源，如果是空，则是系统规则');
            $table->string('interactiveChannel', 32)->default('')->comment('交互方式，如果是空，则是系统规则');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('feishu_calling_cards_investment_employee', function (Blueprint $table) {
            $table->dropColumn(['source', 'interactiveChannel']);
        });
    }
}
